package com.ruoyan.service.impl;

import com.ruoyan.mapper.EmployeeMapper;
import com.ruoyan.pojo.Employee;
import com.ruoyan.service.SalaryManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Package: com.ruoyan.service
 * @ClassName: SalaryManageServiceImpl
 * @Author: ruoyan1998
 * @CreateTime: 2021/6/3 16:08
 * @Description:
 */
@Service
public class SalaryManageServiceImpl implements SalaryManageService
{
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> queryEmployeeSalaryList()
    {
        return employeeMapper.queryEmployeeSalaryList();
    }

    @Override
    public Employee queryEmployeeSalaryById(int id)
    {
        return employeeMapper.queryEmployeeSalaryById(id);
    }

    @Override
    public int updateEmployeeSalary(Employee employee)
    {
        return employeeMapper.updateEmployeeSalary(employee);
    }
}
